home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / jpsrc2.zip / MAKEFILE.PWC < prev    next >
Text File  |  1991-12-12  |  5KB  |  118 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Mix Software's Power C, v2.1.1
  4. # and Dan Grayson's pd make 2.14 under MS-DOS.
  5. # Thanks to Bob Hardy for this version.
  6.  
  7. # Read SETUP instructions before saying "make" !!
  8.  
  9. # The name of your C compiler:
  10. CC=pc
  11.  
  12. # You may need to adjust these cc options:
  13. MODEL=m
  14. CFLAGS= -dMSDOS -m$(MODEL)
  15. # In particular:
  16. #   Add -dMEM_STATS to enable gathering of memory usage statistics.
  17.  
  18. # Link-time cc options:
  19. LDFLAGS=
  20. LDLIBS=
  21.  
  22. # miscellaneous OS-dependent stuff
  23. # linker
  24. LN=pcl
  25. # file deletion command
  26. RM=del
  27. # library (.mix) file creation command
  28. AR=merge
  29.  
  30.  
  31. # source files (independently compilable files)
  32. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jvirtmem.c jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c jwrppm.c jwrrle.c jwrtarga.c
  33. # files included by source files
  34. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  35. # documentation, test, and support files
  36. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  37. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.tc makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf makljpeg.cf
  38. OTHERFILES= ansi2knr.c config.c
  39. TESTFILES= testorig.jpg testimg.ppm testimg.jpg
  40. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(INCLUDES) $(OTHERFILES) $(TESTFILES)
  41. # objectfiles common to cjpeg and djpeg
  42. COMOBJECTS= jutils.mix jvirtmem.mix jerror.mix
  43. # compression objectfiles
  44. CLIBOBJECTS= jcmaster.mix jcdeflts.mix jcarith.mix jccolor.mix jcexpand.mix jchuff.mix jcmcu.mix jcpipe.mix jcsample.mix jfwddct.mix jwrjfif.mix jrdgif.mix jrdppm.mix jrdrle.mix jrdtarga.mix
  45. COBJECTS= jcmain.mix $(CLIBOBJECTS) $(COMOBJECTS)
  46. # decompression objectfiles
  47. DLIBOBJECTS= jdmaster.mix jddeflts.mix jbsmooth.mix jdarith.mix jdcolor.mix jdhuff.mix jdmcu.mix jdpipe.mix jdsample.mix jquant1.mix jquant2.mix jrevdct.mix jrdjfif.mix jwrgif.mix jwrppm.mix jwrrle.mix jwrtarga.mix
  48. DOBJECTS= jdmain.mix $(DLIBOBJECTS) $(COMOBJECTS)
  49. # These objectfiles are included in libjpeg.mix
  50. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  51.  
  52.  
  53. all: cjpeg.exe djpeg.exe
  54. # By default, libjpeg.mix is not built unless you explicitly request it.
  55. # You can add libjpeg.mix to the line above if you want it built by default.
  56.  
  57.  
  58. cjpeg.exe: $(COBJECTS)
  59.     $(LN) $(LDFLAGS) @makcjpeg.cf
  60.  
  61. djpeg.exe: $(DOBJECTS)
  62.     $(LN) $(LDFLAGS) @makdjpeg.cf
  63.  
  64. # libjpeg.mix is useful if you are including the JPEG software in a larger
  65. # program; you'd include it in your link, rather than the individual modules.
  66. libjpeg.mix: $(LIBOBJECTS)
  67.     @$(RM) libjpeg.mix
  68.     $(AR) libjpeg.mix @makljpeg.cf
  69.  
  70. clean:
  71.     $(RM) *.mix cjpeg.exe djpeg.exe testout.*
  72.  
  73. test:
  74.     @$(RM) testout.*
  75.     +djpeg testorig.jpg testout.ppm
  76.     +cjpeg testimg.ppm testout.jpg
  77.     fc testimg.ppm testout.ppm
  78.     fc testimg.jpg testout.jpg
  79.  
  80.  
  81. jbsmooth.mix : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  82. jcarith.mix : jcarith.c jinclude.h jconfig.h jpegdata.h
  83. jccolor.mix : jccolor.c jinclude.h jconfig.h jpegdata.h
  84. jcdeflts.mix : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  85. jcexpand.mix : jcexpand.c jinclude.h jconfig.h jpegdata.h
  86. jchuff.mix : jchuff.c jinclude.h jconfig.h jpegdata.h
  87. jcmain.mix : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  88. jcmaster.mix : jcmaster.c jinclude.h jconfig.h jpegdata.h
  89. jcmcu.mix : jcmcu.c jinclude.h jconfig.h jpegdata.h
  90. jcpipe.mix : jcpipe.c jinclude.h jconfig.h jpegdata.h
  91. jcsample.mix : jcsample.c jinclude.h jconfig.h jpegdata.h
  92. jdarith.mix : jdarith.c jinclude.h jconfig.h jpegdata.h
  93. jdcolor.mix : jdcolor.c jinclude.h jconfig.h jpegdata.h
  94. jddeflts.mix : jddeflts.c jinclude.h jconfig.h jpegdata.h
  95. jdhuff.mix : jdhuff.c jinclude.h jconfig.h jpegdata.h
  96. jdmain.mix : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  97. jdmaster.mix : jdmaster.c jinclude.h jconfig.h jpegdata.h
  98. jdmcu.mix : jdmcu.c jinclude.h jconfig.h jpegdata.h
  99. jdpipe.mix : jdpipe.c jinclude.h jconfig.h jpegdata.h
  100. jdsample.mix : jdsample.c jinclude.h jconfig.h jpegdata.h
  101. jerror.mix : jerror.c jinclude.h jconfig.h jpegdata.h
  102. jquant1.mix : jquant1.c jinclude.h jconfig.h jpegdata.h
  103. jquant2.mix : jquant2.c jinclude.h jconfig.h jpegdata.h
  104. jfwddct.mix : jfwddct.c jinclude.h jconfig.h jpegdata.h
  105. jrevdct.mix : jrevdct.c jinclude.h jconfig.h jpegdata.h
  106. jutils.mix : jutils.c jinclude.h jconfig.h jpegdata.h
  107. jvirtmem.mix : jvirtmem.c jinclude.h jconfig.h jpegdata.h
  108. jrdjfif.mix : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  109. jrdgif.mix : jrdgif.c jinclude.h jconfig.h jpegdata.h
  110. jrdppm.mix : jrdppm.c jinclude.h jconfig.h jpegdata.h
  111. jrdrle.mix : jrdrle.c jinclude.h jconfig.h jpegdata.h
  112. jrdtarga.mix : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  113. jwrjfif.mix : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  114. jwrgif.mix : jwrgif.c jinclude.h jconfig.h jpegdata.h
  115. jwrppm.mix : jwrppm.c jinclude.h jconfig.h jpegdata.h
  116. jwrrle.mix : jwrrle.c jinclude.h jconfig.h jpegdata.h
  117. jwrtarga.mix : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  118.